home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / HyperCuber 2.0 Source / CRotateMouseTask.h < prev    next >
Encoding:
Text File  |  1994-04-06  |  945 b   |  29 lines  |  [TEXT/KAHL]

  1. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. //| This file contains the interfact to the CRotateMouseTask class.
  3. //|_________________________________________________________________
  4. #pragma once
  5.  
  6. #include "Mouse.h"
  7. #include <CMouseTask.h>
  8.  
  9. CLASS CHyperCuberPane;
  10.  
  11. class CRotateMouseTask : CMouseTask
  12.     {
  13.     
  14.     mouse_task_struct *h_tasks;        //  Horizontal tasks
  15.     mouse_task_struct *v_tasks;        //  Vertical tasks
  16.  
  17.     short num_h, num_v;                //  Number of horizontal and vertical tasks
  18.         
  19.     CHyperCuberPane        *pane;        //  The pane containing graphic we're rotating
  20.     
  21.   public:
  22.   
  23.     void    IRotateMouseTask(CHyperCuberPane *the_pane, mouse_task_struct *h_mouse_tasks,
  24.                                         mouse_task_struct *v_mouse_tasks,
  25.                                         short num_h_tasks, short num_v_tasks);
  26.     void    KeepTracking(LongPt *start_point, LongPt *previous_point, LongPt *current_point);
  27.     void    EndTracking(LongPt *start_point, LongPt *previous_point, LongPt *current_point);
  28.  
  29.     };